<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>CPCAP</title>
<link rel="stylesheet" type="text/css" href='<c:url value="/web-files/js/datepicker/css/ui-lightness/jquery-ui-1.8.2.custom.css"></c:url>' />
  <script src='<c:url value="/web-files/js/datepicker/js/jquery-1.4.2.min.js"></c:url>'></script>
  <script src='<c:url value="/web-files/js/datepicker/js/jquery-ui-1.8.2.custom.min.js"></c:url>'></script>
  <script src='<c:url value="/web-files/js/datepicker/js/jquery.ui.datepicker-pt-BR.js"></c:url>'></script>

  <script type="text/javascript">
  
	$(function() {

		$("#data").datepicker({
			 dateFormat: 'dd/mm/yy',
			 showOtherMonths: true, 
			 selectOtherMonths: true,
			 showWeek: true,
			 firstDay: 1,
			 autoSize: true
			 		
		});
        
	});


  </script>

</head>
<body>
	<center><h2>Sistema de Controle de Processos</h2></center><br><br>
	<c:import url="/includes/menu.jsp"></c:import>
	
	
	
	<br><br>
	<form action='<c:url value="/feriado/add"></c:url>' method="post">
	
	<c:forEach var="error" items="${errors}">
${error.category} ${error.message}<br /><br>
</c:forEach>
		
			<input id="data" type="text" name="feriado.data" value='<fmt:formatDate value="${feriado.data}" pattern="dd/MM/yyyy"/>'">
			
		
		
		<input type="submit" value="OK"><br>
	</form>
	
</body>
</html>